/**
 * Created by Freeman on 2016/7/5.
 */
"use strict";

var express = require('express'),
    controller = require('./comment.controller.js'),
    auth = require('../../auth/auth.service');

var router = express.Router();

router.get('/:id/getFrontCommentList',controller.getFrontCommentList);

router.post('/addNewComment',auth.isAuthenticated(),controller.addNewComment);

router.post('/:id/addNewReply',auth.isAuthenticated(),controller.addNewReply);

module.exports = router;